import { request } from '@umijs/max';

// 获取评论列表
export const getCommentList =(type,params)=>{
    return request(`/api/comment/${type}`,{
        method:'GET',
        params:{...params}
    })
}

// 删除评论
export const deleteCommentApi = (id)=>{
    return request(`/api/comment/${id}`,{
        method:'DELETE'
    })
}